package com.tyx.modules.manage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tyx.common.exception.ServiceException;
import com.tyx.common.utils.PageUtils;
import com.tyx.modules.manage.entity.PractitionersEntity;
import com.tyx.modules.manage.entity.PractitionersModel;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author wangchao
 * @email 
 * @date 2019-06-06 09:51:05
 */
public interface PractitionersService extends IService<PractitionersEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 分页
     * @param params
     * @param userId
     * @return
     */
    PageUtils queryPage(Map<String, Object> params,Long userId) throws ServiceException;
    /**
     * 保存
     * @param params
     * @param userId
     */
    void saveData(PractitionersEntity params,Long userId) throws ServiceException;

    /**
     * 根据姓名查询监管人员新消息
     * @param name
     * @return
     * @throws ServiceException
     */
    List<PractitionersModel> getListByName(String name);

    /**
     * 更新
     * @param params
     * @param userId
     */
    void updateData(PractitionersEntity params,Long userId);
    /**
     * 撤销员工状态
     */
    void cancel(PractitionersEntity practitionersEntity);

    /**
     * 导入excel
     * @param fileName
     * @param file
     * @return
     * @throws Exception
     */
    boolean batchImport(String fileName, MultipartFile file) throws Exception;
}

